import request from '@/utils/request'

// 查询医馆分红记录列表
export function listYiguanSeperateRecord(query) {
  return request({
    url: '/admin/yiguanSeperateRecord/list',
    method: 'get',
    params: query
  })
}

// 查询医馆分红记录详细
export function getYiguanSeperateRecord(id) {
  return request({
    url: '/admin/yiguanSeperateRecord/' + id,
    method: 'get'
  })
}

// 新增医馆分红记录
export function addYiguanSeperateRecord(data) {
  return request({
    url: '/admin/yiguanSeperateRecord',
    method: 'post',
    data: data
  })
}

// 修改医馆分红记录
export function updateYiguanSeperateRecord(data) {
  return request({
    url: '/admin/yiguanSeperateRecord',
    method: 'put',
    data: data
  })
}

// 删除医馆分红记录
export function delYiguanSeperateRecord(id) {
  return request({
    url: '/admin/yiguanSeperateRecord/' + id,
    method: 'delete'
  })
}
